{subtemplate common/header}
<link rel="stylesheet" href="./source/plugin/ii_discover/template/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="./source/plugin/ii_discover/template/css/common.css" />

<script type="text/javascript" src="./source/plugin/ii_discover/template/js/jquery.1.8.js"></script>
<script type="text/javascript" src="./source/plugin/ii_discover/template/bootstrap/js/bootstrap.min.js"></script>

<!-- 分类+排序显示 -->
<div class=" cl d_box_h">
	<!-- 分类 -->
	<ul class="d_cat">
		<li ><a href="plugin.php?id=ii_discover&catid={$headcat['catid']}"  <!--{if $headcat['catid'] == $showcat['catid']}-->class="d_on"<!--{/if}-->>全部</a></li>
		<!--{loop $subcat $k $v}-->
		<li><a href="plugin.php?id=ii_discover&catid={$v['catid']}" <!--{if $v['catid'] == $showcat['catid']}-->class="d_on"<!--{/if}--> >{$v['catname']}  ({$v['articles']}) </a></li>
		<!--{/loop}-->
	</ul>
	<!-- 分类结束 -->
	<!-- 排序 -->
	<div class="d_order">
		<a  <!--{if $_GET['order'] == 1 || !$_GET['order']}-->class="d_on"<!--{/if}-->  href="plugin.php?id=ii_discover&catid={$showcat['catid']}&order=1" >热度</a>

		<a <!--{if $_GET['order'] == 2}-->class="d_on"<!--{/if}-->href="plugin.php?id=ii_discover&catid={$showcat['catid']}&order=2" >发布时间</a>
		
	</div>
	<!-- 排序结束 -->
</div>
<!-- 分类+排序显示结束 -->

<!-- 内容显示 -->
<div class="cl d_box_c">
	<ul>

		<!--{loop $list $k $v}-->
		<li>
			<div class="d_img">
				<a target="_blank" href="portal.php?mod=view&aid={$v['aid']}">
					<img src="./data/attachment/{$v['pic']}" width="185" alt="" />
				</a>
				
			</div>
			
			<h2><a target="_blank" href="portal.php?mod=view&aid={$v['aid']}">$v['title']</a></h2>
			<p>
				<span><span class='icons icons-view' title="浏览"></span>{$v['viewnum']}</span>
				
				<span><span class='icons icons-comment' title="评论"></span>{$v['commentnum']}</span>
				
				<span><span class='icons icons-fav' title="分享"></span>{$v['favtimes']}</span>
				<span class="c_name">
					<a href="plugin.php?id=ii_discover&catid={$v['catid']}">{$v['catname']}</a>
				</span>
			</p>
		</li>
		<!--{/loop}-->
		
		
		

	</ul>
</div>
<!-- 内容显示结束 -->
<div id="page">
	{$page}	
</div>


<div style="clear:both;"></div>
<div class="cl"></div>
{subtemplate common/footer}